package cn.tedu.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author 郭鲁政
 */
@FeignClient(name = "storage")
public interface StorageClient {
    /**
     * 远程调用
     * @param productId
     * @param count
     * @return
     */
    @GetMapping("/decrease")
    String decrease(@RequestParam("productId")Long productId,@RequestParam("count")Integer count);
}
